package com.flurry.sdk;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public final class iv {
    byte[] a;

    public iv() {
    }

    public iv(byte[] bArr) {
        this.a = bArr;
    }

    public static class a implements lg<iv> {
        /* JADX WARNING: Code restructure failed: missing block: B:2:0x0004, code lost:
            r1 = new com.flurry.sdk.iv.a.AnonymousClass2(r3, r4);
         */
        /* Code decompiled incorrectly, please refer to instructions dump. */
        public final /* synthetic */ Object a(java.io.InputStream r4) throws IOException {
            /*
                r3 = this;
                r0 = 0
                if (r4 != 0) goto L_0x0004
            L_0x0003:
                return r0
            L_0x0004:
                com.flurry.sdk.iv$a$2 r1 = new com.flurry.sdk.iv$a$2
                r1.<init>(r4)
                short r2 = r1.readShort()
                if (r2 == 0) goto L_0x0003
                com.flurry.sdk.iv r0 = new com.flurry.sdk.iv
                r0.<init>()
                byte[] r2 = new byte[r2]
                r0.a = r2
                byte[] r2 = r0.a
                r1.readFully(r2)
                r1.readUnsignedShort()
                goto L_0x0003
            */
            throw new UnsupportedOperationException("Method not decompiled: com.flurry.sdk.iv.a.a(java.io.InputStream):java.lang.Object");
        }

        public final /* synthetic */ void a(OutputStream outputStream, Object obj) throws IOException {
            iv ivVar = (iv) obj;
            if (outputStream != null && ivVar != null) {
                AnonymousClass1 r0 = new DataOutputStream(outputStream) {
                    public final void close() {
                    }
                };
                r0.writeShort(ivVar.a.length);
                r0.write(ivVar.a);
                r0.writeShort(0);
                r0.flush();
            }
        }
    }
}
